package com.redis.data.seckillshopping.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 哲思小辉
 * @version 1.0.0
 * @ClassName GoodsOrder.java
 * @Description 订单实体
 * @Param
 * @createTime 2020年03月25日 20:35:00
 */
@Data
@ApiModel(value = "GoodsOrder", description = "订单对象")
public class GoodsOrder extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -49149372443492454L;

    /**
     * 商品id
     */
    @ApiModelProperty(name = "goodsId", value = "商品id", example = "5196")
    private Integer goodsId;
    /**
     * 用户名称
     */
    @ApiModelProperty(name = "userId", value = "用户名称", example = "2511")
    private String userId;
    /**
     * 订单是否生效：0未生效，1生效
     */
    @ApiModelProperty(name = "orderStatus", value = "订单是否生效：0未生效，1生效", example = "1")
    private Integer orderStatus;
    /**
     * 总价
     */
    @ApiModelProperty(name = "totalPrice", value = "总价", example = "5998")
    private Double totalPrice;
    /**
     * 数量
     */
    @ApiModelProperty(name = "amount", value = "数量", example = "2")
    private Integer amount;
    /**
     * 单价
     */
    @ApiModelProperty(name = "unitPrice", value = "单价", example = "2999")
    private Double unitPrice;
    /**
     * 备注信息
     */
    @ApiModelProperty(name = "remark", value = "备注信息", example = "超时未付款")
    private String remark;

}